<?php
if ( !defined('IN_ADMINCP') || !defined('IN_SEC') ){
	exit('Access Denied.');
}

$where = array(
	'adminid' => $admincp->adminid
);

$schedules = limitquery('schedule', $where);

$datas = array();

foreach( $schedules as $k => $v ){
	$data = array(
		'id' => $v['id'],
		'title' => $v['title'],
		'start' => date('Y-m-d H:i:s', $v['begin_time']),
		'end' => date('Y-m-d H:i:s', $v['end_time']),
		'allDay' => (date('H:i:s', $v['begin_time']) == '00:00:00') ? 1 : 0
	);
	$datas[] = $data;
}

?>